<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use App\Models\Usersauthority;
use App\Models\Miniappsauthorization;
use Illuminate\Support\Facades\Cache;
use App\Models\Linkslistsminapps;
use Illuminate\Support\Facades\Redis;
use App\Models\Users;
use App\Services\CacheService;
use App\Services\WechatopenService;
use App\Services\WechatsService;
use App\Services\WechatoffiaccountService;
use App\Services\WechattmplmsgService;
use App\Jobs\Miniappdisable;
use DB,Log,Exception;

class Testjiancemini extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'miniapps:teststatus';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '测试公用小程序服务状态（是否暂停服务）';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->suspendAppids = [];
        $this->unAuthorAppids = [];
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        $times = Redis::get("today_mini_times_".date('Ymd'));
        // Redis::del("today_mini_times_".date('Ymd'));
        dump($times);
        // CacheService::usersMiniappCacheRemove(89497);
    }
}
